import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JScrollPane;

public class Message {
        String message;
        int widthFrame = 400;
        int heightFrame = 200;
        
        public Message(String message){
                this.message = message;
        }

        public void show(){
                JLabel label = new JLabel(this.message);
                JScrollPane sp = new JScrollPane(label);
                JFrame frame = new JFrame("Attention !!!");
                frame.setSize(widthFrame, heightFrame);
                frame.add(sp);
                frame.setVisible(true);
        }
}
